#include <stdio.h>
#include <math.h>
int main()
{
    int s;
    double sum = 0;
    scanf("%d", &s);
    for (int i = 1; i <= s; i++)
    {
        sum += sqrt(i);
    }
    printf("sum = %.2f", sum);
    return 0;
}